package com.example.hyw.szysteam.model;


import com.example.hyw.szysteam.POJO.HttpResult;
import com.example.hyw.szysteam.POJO.HttpReview;
import com.example.hyw.szysteam.POJO.Review;
import com.example.hyw.szysteam.http.RetrofitManager;

import java.util.ArrayList;

import io.reactivex.Observable;

/**
 * Created by HYW on 2018/7/11.
 */

public class MistakeBookModel {
    public Observable<HttpResult<Integer>> saveMistakeBook(String email,int id,String myanswer){
        return RetrofitManager.getInstance().getRetrofitApiService().savemistakebook(email,id,myanswer);
    }

    public Observable<HttpResult<Integer>> saveMistakeBooks(String email,String list,String myanswer){
        return RetrofitManager.getInstance().getRetrofitApiService().savemistakebooks(email,list,myanswer);
    }

    public Observable<HttpResult<ArrayList<Review>>> getmistakebooks(String email){
        return RetrofitManager.getInstance().getRetrofitApiService().getmistakebooks(email);
    }
}
